package com.shen.nettysocketchat.bus

import com.shen.nettysocketchat.bean.SingleMessage


/**
 * author:  shen
 * date:    2021/08/23
 *
 * LiveData 总线
 */
object LiveDataBusUtils {
    const val BUS_TYPE_CHAT_SINGLE_MESSAGE = "bus_type_chat_single_message"  // 接收到"单聊消息"


    /** 发送「接收到"单聊消息"」事件 */
    fun postChatSingleMessageBus(msg: SingleMessage){
        LiveDataBus.with<SingleMessage>(BUS_TYPE_CHAT_SINGLE_MESSAGE).postData(msg)
    }


}
